﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="SharingCenter.Web.Mod.Talks.Search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <%=keyword %>
    - 话题搜索
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.resultpanel{padding: .2em 0;}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <%if(group!=null){ %>
    <myuc:GroupHeader runat="server" ID="groupHeader1" />
    <myuc:GenericTabs ID="LinkListTabs2" runat="server" Section="GroupPage" SelectedItem="2" AddPageQueryString="true"  />
    <%} %>
    <h2 class="bb">
        <span class="nss"></span>
        <span class="iconlabel">包含 "<%=keyword %>" <wbr />的话题</span>
        <br /><span style="font-weight:normal;" class="sz-s">共找到<asp:Literal ID="lblResultCount" runat="server"></asp:Literal>条结果</span>
    </h2>
    <asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1">
        <LayoutTemplate>
            <div runat="server" id="itemPlaceholder" />
        </LayoutTemplate>
        <ItemTemplate>
            <div class="resultpanel">
                <span class="sz-m">
                &#8226;
                <%if (group == null)
                  { %>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("ThreadId", "Thread.aspx?u=1&t={0}") %>'>
                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("PostTitle") %>'></asp:Label>
                </asp:HyperLink>
                <%}
                  else
                  {%>
                  <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%#Eval("ThreadId", "~/Mod/Groups/Posts/Posts.aspx?u=1&t={0}") %>'
                   OnPreRender="HyperLink2_PreRender">
                    <asp:Label ID="Label2" runat="server" Text='<%#Eval("PostTitle") %>'></asp:Label>
                </asp:HyperLink>
                <%} %>
                </span>
            </div>
        </ItemTemplate>
        <ItemSeparatorTemplate>
            <div class="hr1">
            </div>
        </ItemSeparatorTemplate>
    </asp:ListView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server">
    </asp:LinqDataSource>
    <p>
     <%if (group == null)
       { %>
    <a %class="button" href="Threads.aspx?c=<%=catId %>">返回</a>
    <%}%>
    </p>
</asp:Content>
